package com.wtwd.device.constant;

public enum ExcelImportTemplateEnum {
    TEACHER(1, "批量导入教师模板"),
    STUDENT(2, "批量导入学生模版"),
    DEVICE(3, "批量导入设备模版"),
    THIRDLY_CUSTOMER_DEVICE(4, "批量导入第三方客户设备模板"),
    ;
    private int code;
    private String fileName;

    ExcelImportTemplateEnum(int code, String fileName) {
        this.code = code;
        this.fileName = fileName;
    }

    public static ExcelImportTemplateEnum getTemplateEnum(int code) {
        for (ExcelImportTemplateEnum value : ExcelImportTemplateEnum.values()) {
            if (code == value.code) {
                return value;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
}
